#CMakeLists.txt

CMAKE_MINIMUM_REQUIRED(VERSION 3.0)

PROJECT( SAMPLE_DICOM CXX)

OPTION( BUILD_DICOM1
"Build the OPENGL ."
ON)

IF( BUILD_DICOM1)

FILE(GLOB_RECURSE OPENGL_SRC_LIST ./*.*)



if(WIN32)

INCLUDE_DIRECTORIES(../../${WIN_DEPENDENCE_PATH}/freeglut-2.8.1/include
		 			../../${WIN_DEPENDENCE_PATH}/glew-1.12.0/include)

LINK_DIRECTORIES(../../${WIN_DEPENDENCE_PATH}/freeglut-2.8.1/lib/x64/Debug
		 			../../${WIN_DEPENDENCE_PATH}/glew-1.12.0/lib/Debug/x64)

ADD_EXECUTABLE(SAMPLE_DICOM1 ${OPENGL_SRC_LIST})

target_link_libraries(SAMPLE_DICOM1 glew32d.lib freeglut.lib)

endif(WIN32)




SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/../../bin)

ENDIF(BUILD_DICOM1)